package com.zy.springboot.dao.book;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.zy.springboot.dao.BaseDao;
import com.zy.springboot.entity.IBaseEntity;
import com.zy.springboot.entity.book.BookEntity;
import com.zy.springboot.entity.user.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by y on 2019/1/11.
 */
@Repository
public class BookDao extends BaseDao {

    public BookDao(){
        super.iBaseEntity = new BookEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json,BookEntity.class);
    }

}
